package com.weixin.portalweb.controller;

import com.weixin.portalweb.domain.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.time.Instant;
import java.util.Date;

/**
 * @author: Jack
 * @create: 2019-11-26 09:43
 **/
@RestController
public class TestController {
    @RequestMapping("/date")
    public User test(){
        User user = new User(new Date(), Instant.now());
        int i=1/0;
        return user;
    }
}
